import request from '@/utils/axios'

// 获取站内信处理
export const getMessageList = (status?: string) => {
  return request.get({ url: `/api/v1/client/mailbox/list${status ? '?status=' + status : ''}` })
}

// 获取站内信详情
export const getMessageDetailById = (id: string) => {
  return request.get({ url: `/api/v1/client/mailbox/detail?id=${id}` })
}

// 获取网站公告列表
export const getSiteAnnouncementList = () => {
  return request.get({ url: `/api/v1/client/announcement/list` })
}

// 获取网站公告详情（暂时不用）
export const getSiteAnnouncementDetails = (id: string) => { 
  return request.get({ url: `/api/v1/client/announcement/detail?id=${id}` })
}

